﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HostalVISA
{
    public partial class frmRegistraReserva : Form
    {
        public frmRegistraReserva()
        {
            InitializeComponent();
        }

        private void btnSalir_Click(object sender, EventArgs e)
        {
            this.Close();
            //MessageBox.Show("Asegurece de guardar los cambios", "ADVERTENCIA",
            //MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }

        private void btnEliminar_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("Esta seguro de Eliminar", "AVISO",
            //MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

            string message = "¿Esta seguro que desea eliminar el registro?";
            string caption = "ADVERTENCIA";
            MessageBoxButtons buttons = MessageBoxButtons.YesNo;
            MessageBoxIcon icon = MessageBoxIcon.Question;
            DialogResult result;

            
            result = MessageBox.Show(message, caption, buttons,icon );

            if (result == System.Windows.Forms.DialogResult.Yes)
            {

                string messag = "Esta a punto de eliminar un registro, ¿Desea continuar?";
                string captio = "ADVERTENCIA";
                MessageBoxButtons button = MessageBoxButtons.OKCancel;
                MessageBoxIcon ico = MessageBoxIcon.Warning;
                DialogResult resul;


                resul = MessageBox.Show(messag, captio, button, ico);
                //this.Close();

            }

        }
      
        private void btnEditar_Click_2(object sender, EventArgs e)
        {
            frmBuscarReserva frmBuscaReserva = new frmBuscarReserva();
            frmBuscaReserva.Show();
        }

        private void btnNuevo_Click(object sender, EventArgs e)
        {
           
        }

        private void btnGuardar_Click(object sender, EventArgs e)
        {
            frmRegistrarEntrada frmReservaBusca  = new frmRegistrarEntrada();
            frmReservaBusca.Show();
        }

        private void frmReserva_Load(object sender, EventArgs e)
        {
           
        }

        private void groupBox2_Enter(object sender, EventArgs e)
        {

        }

        private void label3_Click(object sender, EventArgs e)
        {

        }

        

    }
}
